package nancal.mp.db.es

import nancal.mp.db.es.table.SystemGroup
import nbcp.myoql.db.comm.BaseMetaData
import nbcp.myoql.db.db
import nbcp.myoql.db.es.EsEntityCollector
import org.slf4j.LoggerFactory

object esr {

    val logger = LoggerFactory.getLogger(this::class.java);

    @JvmStatic
    val affectRowCount
        get() = db.affectRowCount

    @JvmStatic
    val system
        get() = SystemGroup()

    @JvmStatic
    val groups
        get() = db.es.groups;

    fun getIndex(indexName: String): BaseMetaData<out Any>? {
        return EsEntityCollector.getIndex(indexName)
    }

}